-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use network name instead of cluster name on sidecar #2303
base: acp-77
Are you sure you want to change the base?
Conversation
Network (for sidecar.json) is now stored in the form of etna / fuji / mainnet instead of cluster name even if clustername flag is used. |
Could have implemented this change in network function level, but this will impact node wiz and other node functionalities (separate from acp-77), which is why this change was not considered. |
ginkgo.It("Start Local Node on Etna & Deploy the Subnet To Public Etna using cluster flag", func() { | ||
_, err := commands.CreateLocalEtnaDevnetNode(testLocalNodeName, 1, utils.EtnaAvalancheGoBinaryPath) | ||
gomega.Expect(err).Should(gomega.BeNil()) | ||
createEtnaSubnetEvmConfig() | ||
deployEtnaSubnetClusterFlagConvertOnly(testLocalNodeName) | ||
_, err = commands.TrackLocalEtnaSubnet(testLocalNodeName, subnetName) | ||
gomega.Expect(err).Should(gomega.BeNil()) | ||
err = initPoaManagerClusterFlag(subnetName, testLocalNodeName) | ||
gomega.Expect(err).Should(gomega.BeNil()) | ||
}) | ||
|
||
ginkgo.It("Mix and match network and cluster flags test 1", func() { | ||
_, err := commands.CreateLocalEtnaDevnetNode(testLocalNodeName, 1, utils.EtnaAvalancheGoBinaryPath) | ||
gomega.Expect(err).Should(gomega.BeNil()) | ||
createEtnaSubnetEvmConfig() | ||
deployEtnaSubnetClusterFlagConvertOnly(testLocalNodeName) | ||
_, err = commands.TrackLocalEtnaSubnet(testLocalNodeName, subnetName) | ||
gomega.Expect(err).Should(gomega.BeNil()) | ||
_, err = initPoaManagerEtnaFlag(subnetName) | ||
gomega.Expect(err).Should(gomega.BeNil()) | ||
}) | ||
ginkgo.It("Mix and match network and cluster flags test 2", func() { | ||
createEtnaSubnetEvmConfig() | ||
deployEtnaSubnetEtnaFlagConvertOnly() | ||
_, err := commands.TrackLocalEtnaSubnet(testLocalNodeName, subnetName) | ||
gomega.Expect(err).Should(gomega.BeNil()) | ||
err = initPoaManagerClusterFlag(subnetName, testLocalNodeName) | ||
gomega.Expect(err).Should(gomega.BeNil()) | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests make sure that --cluster and --network flags are interchangeable
I feel like it adds a confusion if we do it, if I understand this PR correctly. |
Why this should be merged
Currently if a blockchain is created with cluster flag and user uses additional commands like addValidator
This is because we are storing where the blockchain is deployed in in cluster name instead of which network it was deployed in.
How this works
Sidecar should show network name instead of cluster name to enable interchangeability of using --cluster vs --network (e.g. --fuji / --etna-devnet). This PR enable interchangeability of --cluster and --network flags.
How this was tested
Should pass CI
How is this documented
NA